/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * RobotPanel.java
 *
 * Created on 16 avr. 2012, 19:35:11
 */
package robotlion.view;

import java.awt.Graphics;
import java.awt.Image;
import java.io.File;
import java.net.URL;
import javax.swing.ImageIcon;

/**
 *
 * @author test
 */
public class RobotPanel extends javax.swing.JPanel {

    /** Creates new form RobotPanel */
    public RobotPanel() {
        initComponents();
    }

    @Override
    public void paintComponent(Graphics g) {
        ImageIcon simba = new ImageIcon(getClass().getResource("/Images/simba1.jpg"));
        Image isimba = simba.getImage();
        g.drawImage(isimba, 0, 0, null);
        super.paintComponents(g);
    }
    
    

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setMaximumSize(new java.awt.Dimension(20, 20));
        setMinimumSize(new java.awt.Dimension(20, 20));
        setName("Form"); // NOI18N
        setPreferredSize(new java.awt.Dimension(20, 20));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 20, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 20, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables
}
